home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scprintengine.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-11-17  |  828 b   |  35 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SCPRINTENGINE_H
  8. #define SCPRINTENGINE_H
  9.  
  10. #include <QObject>
  11.  
  12. class  ScribusDoc;
  13. struct PrintOptions;
  14.  
  15. class ScPrintEngine : public QObject
  16. {
  17.     Q_OBJECT
  18.  
  19. protected:
  20.  
  21.     bool    m_abort;
  22.     QString m_errorMessage;
  23.  
  24.     ScPrintEngine() { m_abort = false; }
  25.  
  26. public:
  27.     virtual ~ScPrintEngine() {}
  28.     virtual bool print(ScribusDoc& doc, PrintOptions& options) = 0;
  29.     virtual const QString& errorMessage(void) { return m_errorMessage; }
  30.  
  31. public slots:
  32.     void cancelRequested(void) { m_abort = true; }
  33. };
  34. #endif
  35.